<?php
require('connect.php');
include 'constants.php';
// $jsonResponse = "{";
// $jsonResponse = $jsonResponse . '"response": "already_exists"';
// $jsonResponse = $jsonResponse . "}";
// echo $jsonResponse;


for ($i = 1; $i < 100; $i++) 
{
	$randTime = rand(0,45);
	$randTime = $randTime + (1/rand(1,100));
	$games_played = rand(10,1500);
	$stars = rand(5,150);
	$nickName = 'levelUser_' . $i;
	$user_id = $user_id + 1;
	echo "nickName:" . $nickName . " , time:" . $randTime . " , userID:" . $user_id . "<br/>";

	$insertFormat = "INSERT INTO world_records (id, type, username, time, user_id, level) VALUES (NULL, '%d', '%s', '%f', '%d', '%d')";
	$insertQuery = sprintf($insertFormat,0, $nickName, $randTime, $user_id,1);
	mysql_query($insertQuery);
}

mysql_close();